package com.manager.core.shiro.core.dao;

import java.util.List;
import java.util.Map;

import com.manager.commons.mybatis.dao.GenericDao;
import com.manager.commons.mybatis.annotation.MyBatisDao;
import com.manager.core.shiro.core.entity.*;
import org.apache.ibatis.annotations.Param;

/**
 * ShiroDao
 *
 * @author H
 */
@MyBatisDao
public interface ShiroDao extends GenericDao<ShiroPermission> {

    LoginUser login(Map<String, Object> _map);

    ShiroUserRole queryUserRoles(Map<String, Object> _map);

    List<ShiroRolePermission> queryRolePermission(Map<String, Object> map);

    List<ShiroRolePermission> queryAccountPermission(String account);

    List<ShiroRolePermission> queryPermissionThree(Map<String, Object> map);

    List<ShiroRolePermission> queryPermissionAllThree(@Param("code") String code);

    List<ShiroRolePermission> queryPermissionAll();

    UserView queryUserView(String account);

    List<UserView> queryUserAll();

    List<UserView> queryRoleAll();

    List<String> queryUserCategoryStr(String id);

    List<String> queryUserLibraryStr(String id);
}